/**
 * 管理中心公用js
 * Created by mrcode on 2016/5/24.
 */
$(function () {
    mangaerMenu();
});
/** 菜单 */
function mangaerMenu () {
    $("#mangaer-menu").on("click",function (){
        var $managerNavMenu = $(".manager_nav_menu");
        if($managerNavMenu.is(":hidden")){
            $managerNavMenu.show(300);
        }else{
            $managerNavMenu.hide(300);
        };
    });

    $("#menu-zd").on("click",function () {
        var width = $("#manager_nav").css("width");
        if(width == "38px"){
            $("#manager_nav").css("width","auto");
            $(".manager_xfq").show();
            MrcodeUi.Utils.addAni($(".manager_xfq"),"fadeIn");
        }else{
            $("#manager_nav").css("width","38px");
            $(".manager_xfq").hide();
            MrcodeUi.Utils.addAni($(".manager_xfq"),"fadeOut");
        }
    });
}